package com.zd.mapper;

import com.zzg.entity.Finance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: FinancezdMapper 财务管理
 * @Author:pioneer
 * @Date: 2021-07-29
 * @Version:v1.0
 */
@Mapper
public interface FinancezdMapper {
    /**
     * 根据运单编号查询财务核销信息
     * @param waybill 运单id
     * @return Finance 财务管理
     */
    public Finance getFinanceByfinance(@Param("waybill") String waybill);

    /**
     * 根据财务id修改财务状态
     * @param costbreakdownid 财务id
     * @param orderstatus 财务状态
     * @return 返回数值判断是否修改成功
     */
    public int updateFinancestate(@Param("costbreakdownid") String costbreakdownid, @Param("orderstatus") String orderstatus);

    /**
     * 根据财务id修改财务核销状态
     * @param costbreakdownid 财务id
     * @param verification 是否核销
     * @return 返回数值判断是否修改成功
     */
    public int updateFinanceverification(@Param("costbreakdownid") String costbreakdownid, @Param("verification") String verification);
}
